package com.changfen.produce;

import com.changfen.event.Event;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author changfeng.chen@things-matrix.com
 * @date 2022/8/27 12:10
 **/
@Component
public class Producer implements Produce{
    @Resource
    private DisruptorExecutor disruptorExecutor;

    @Override
    public void publishEvent(Event event) {
        disruptorExecutor.publishEvent(event);
    }
}
